Recipient message search pagination#23
Merged
kentcdodds merged 4 commits intoJan 30, 2026
Merged
Conversation
- Add search functionality to filter past messages by content - Add pagination with max 100 messages per page - Include search query preservation across page navigation - Add UI components: search bar with debounced auto-submit, pagination controls - Show message count and search result summary Co-authored-by: me <me@kentcdodds.com>
|
Cursor Agent can help with this pull request. Just |
These values were computed in the loader but never used by the client. The Pagination component recomputes them locally from currentPage and totalPages, making the loader computation redundant and wasteful.
|
Bugbot Autofix resolved the bug found in the latest run.
|
…eSearchBar duplication
|
Bugbot Autofix resolved the bug found in the latest run.
|
|
Bugbot Autofix resolved the bug found in the latest run.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces search and pagination functionality to the past messages view for a recipient. Users can now filter messages by content using a search bar and navigate through messages in pages of up to 100, significantly improving usability and performance for recipients with a large message history.
Test Plan
/recipients/some-recipient-id/past).Checklist
Screenshots
Past messages page with search bar and pagination info:

Search filtering results:

Note
Medium Risk
Changes query semantics and data fetching for message history (new filtering, ordering, and pagination), which could impact correctness/performance on large datasets; otherwise it’s a contained UI/loader update.
Overview
Adds server-backed search and pagination to the recipient past-messages page: the loader now reads
search/page, filters messages bycontent, counts total results, and fetches a paged slice (100 per page) ordered by newest first.Updates the UI to include an auto-submitting
SearchBar, a newPaginationcontrol that preserves query params across page navigation, and pending-state/empty-state messaging to reflect filtered and paged results.Generalizes
SearchBarby adding an optionalactionprop so it can submit GET searches to routes beyond/users.Written by Cursor Bugbot for commit 3ca2030. This will update automatically on new commits. Configure here.